A massive fire ravaged a closed garment factory in Kazi compound, in Thane’s Bhiwandi, late on Sunday night.